//
//  YSReviewsHeaderView.h
//  Yueshi
//
//  Created by Northwan on 15/8/14.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YSReviews.h"

@protocol YSReviewsHeaderViewDelegate <NSObject>

@optional
- (void)webviewLoadFinish;
- (void)openComment;
- (void)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType;

@end

@interface YSReviewsHeaderView : UIView
@property (nonatomic, weak) id<YSReviewsHeaderViewDelegate> delegate;
@property (nonatomic, assign) NSInteger reviewsId;
- (void)setReviewsData:(YSReviews *)reviews prodList:(NSArray *)prodList;
-(void)setTitle:(NSString *)title;
-(BOOL)haveData;
@end
